{template header}

<form class="form-horizontal" method="POST" action="?c=admin&a=setGearHomeBestGoods&action=add">
<div class="control-group search-group" style="margin:0px;padding:0px;">
        <label class="control-label">ID：</label>
        <div class="controls">
          <input type="text" placeholder="装备ID" name="gearId" value="">
           <button class="btn" type="submit">添加</button>
        </div>
</div>
</form>
<div class="bs-docs-example" style="clear:both;">
    <table class="table table-striped table-align">
        <thead>
            <tr>
                <th>ID</th>
                <th>名称</th>
                <th>图片</th>
                <th>价格</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {loop $list $k $v}
            <tr id="{$v['gearId']}">
                <td>{$v['gearId']}</td>
                <td>{$v['name']}</td>
                <td><img src="{$v['images']}" width="50" height="50" /></td>
                <td>{$v['price']}</td>
                <td>
                    <a class="btn btn-edit" href="?c=admin&a=setGearHomeBestGoods&action=del&gearId={$v['gearId']}">删除</a>
                </td>
            </tr>
            {/loop}
        </tbody>
    </table>
</div>
{template footer}
